import service from '../server'

// 修改手机号
export const changeMobildApi = (data) => {
    return service.post('/api/v1/user/phone',data)
}

// 修改密码
export const changePwdApi = (data) => {
    return service.post('/api/v1/user/password',data)
}

// 获取绑定微信验证码
export const bindQrcode = (data) => {
    return service.get('/api/v1/user/wx/bind/qrcode',data)
}

// 检查绑定扫描二维码结果
export const checkBindQrcode = (data) => {
    return service.post('/api/v1/user/wx/bind/qrcode/check',data)
}

// 解绑微信
export const unbindQrcode = (data) => {
    return service.post('/api/v1/user/wx/unbind',data)
}

// 学生认证
export const studentCertification = (data) => {
    return service.post('/api/v1/user/student',data)
}

// 企业认证
export const enterpriseCertification = (data) => {
    return service.post('/api/v1/user/enterprise',data)
}

// 注销
export const logOffApi = (data) => {
    return service.get('/api/v1/user/logoff',data)
}

// 生成公钥
export const createSSH = (data) => {
    return service.post('/api/v1/user/ssh/create',data)
} 

// 公钥列表
export const getSSHListApi = (data) => {
    return service.get('/api/v1/user/ssh/list',data)
}

// 删除公钥 
export const deleteSSH = (data) => {
    return service.delete('/api/v1/user/ssh/del', data)
}

// 个人信息
export const getUserInfoApi = (data) => {
    return service.get('/api/v1/user/profile',data)
}

// 修改个人资料
export const updateUserInfo = (data) => {
    return service.post('/api/v1/user/update',data)
} 

// 获取个人账户信息
export const getAccountInfoApi = (data) => {
    return service.get('/api/v1/user/account',data)
}

// 绑定邮箱
export const bindUserEmail = (data) => {
    return service.post('/api/v1/user/email',data)
} 

// 实名认证
export const nameAuthApi = (data) => {
    return service.post('/api/v1/user/auth',data)
} 

// 创建OpenApi密钥
export const createTokenApi = (data) => {
    return service.post('/api/v1/user/token/create',data)
} 

// 删除用户OpenApi密钥
export const delTokenApi = (data) => {
    return service.delete('/api/v1/user/token/del',data)
} 

// 用户OpenApi密钥列表
export const getTokenListApi = (data) => {
    return service.get('/api/v1/user/token/list',data)
} 

// 余额预警
export const balanceWarningApi = (data) => {
    return service.post('/api/v1/user/balance-warning/setting',data)
} 

// 用户消息开关设置
export const userMsgSetApi = (data) => {
    return service.post('/api/v1/user/message/setting',data)
} 

// 忘记密码
export const findPwdApi = (data) => {
    return service.post('/api/v1/user/forgot-password',data)
} 
